package cn.pengyinrui.pethome.emp.mapper;

import cn.pengyinrui.pethome.base.mapper.BaseMapper;
import cn.pengyinrui.pethome.emp.domain.Employee;
import cn.pengyinrui.pethome.emp.domain.EmployeeBo;
import cn.pengyinrui.pethome.emp.query.EmployeeQuery;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmployeeMapper extends BaseMapper<Employee> {
    // 查找全部
    List<EmployeeBo> findAllBo();
    // 分页查询全部
    List<EmployeeBo> findAllBoByQuery();

    // 通过id查询子类数量
    Long findChildrenByIdCount(Long id);

}
